package controller.environment.ground;

import java.awt.Color;
import java.util.Random;

import reference.constants.ConstantProblem;

import controller.algorithms.AlgorithmManager;
import controller.environment.GroundManager;

public class GroundFlowered extends Ground {
	
	public GroundFlowered(GroundManager ground_manager, int pos_x, int pos_y){
		super(ground_manager, pos_x, pos_y);
		m_amountWork = new Random().nextInt(ConstantProblem.QUANTITY_WORK_FLOWERED_MAX);
	}
	
	public boolean retrieveFlower(double quantityOfWork){
		return false;
	}

	public void actsParticular() {
		
	}

	public Color getColor() {
		return Color.YELLOW;
	}

	public void evolve() {
		Ground newGround = new GroundFertile(m_groundManager, m_posX, m_posY);
		m_groundManager.setNewGround(newGround, m_posX, m_posY);
		AlgorithmManager.getInstance().getAlgorithm().addOneToScore();
	}
}
